
<!DOCTYPE html>
<html class="no-js">
<head lang="en">

    <#include "../head_import.html" />

</head>
<body>
<#include "../include/top_nav.html">
    <div class="am-cf admin-main">

        <!-- sidebar start -->
        <#include "../article/left.html">
            <!-- sidebar end -->
            <!-- content start-->
            <div class="admin-content">
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><@s.m "global.position"/>:  <@s.m "shopArticle.function"/> - <@s.m "global.edit"/></div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <form class="ropt">
                            <input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();"/>
                        </form>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <@p.form id="baseForm" action="o_update.do" labelWidth="12">
                        <@p.select colspan="2" label="shopArticle.channel" name="channelId" value=shopArticle.channel.id list=articleChannelList listKey="id" listValue="name"/><@p.tr/>
                        <@p.td colspan="2" width="100"  label="shopArticle.title" required="true" >
                        <@p.text name="title" value=shopArticle.title  size="70" required="true" class="required"  maxlength="255"/>
                        <label><input type="checkbox" onclick="$('#linkDiv').toggle(this.checked);if(!this.checked){$('#link').val('');}" <#if shopArticle.link??><#if shopArticle.link!="">checked="checked"</#if></#if>/><@s.m "global.link"/></label>
                        <div id="linkDiv" <#if shopArticle.link??><#if shopArticle.link="">style="display:none"</#if><#else>style="display:none"</#if>>url: <input type="text" id="link" name="link" value="${shopArticle.link!}" size="35" maxlength="255"/></div>
                </@p.td><@p.tr/>
                <@p.text colspan="1" width="50" label="shopArticle.publishTime" name="publishTime" value=shopArticle.publishTime?string('yyyy-MM-dd HH:mm:ss') readonly="readonly"  onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
                <@p.radio colspan="1" width="50" label="shopArticle.disabled" name="disabled" value=shopArticle.disabled list={"true":"global.true","false":"global.false"}/><@p.tr/>
                <@p.editor colspan="2" label="shopArticle.content" name="content" value=shopArticle.content height="300"/><@p.tr/>
                <@p.td colspan="2" label="shopArticle.extendData">
                <@s.m "shopArticle.data"/>1: <@p.text name="param1" value=shopArticle.param1!/> &nbsp;
                <@s.m "shopArticle.data"/>2: <@p.text name="param2" value=shopArticle.param2!/> &nbsp;
                <@s.m "shopArticle.data"/>3: <@p.text name="param3" value=shopArticle.param3!/>
            </@p.td><@p.tr/>
            <@p.td colspan="2"><@p.hidden name="id" value=shopArticle.id/><@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/></@p.td>
    </@p.form>

    </div>
    </div>



    </div>

    </div>
</body>
</html>
